package com.ruoyi.gcgl.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ruoyi.gcgl.mapper.GcFkfpMapper;
import com.ruoyi.gcgl.domain.GcFkfp;
import com.ruoyi.gcgl.service.IGcFkfpService;
import com.ruoyi.common.core.text.Convert;

/**
 * 发票项Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-07-21
 */
@Service
public class GcFkfpServiceImpl implements IGcFkfpService 
{
    @Autowired
    private GcFkfpMapper gcFkfpMapper;

    /**
     * 查询发票项
     * 
     * @param id 发票项主键
     * @return 发票项
     */
    @Override
    public GcFkfp selectGcFkfpById(Long id)
    {
        return gcFkfpMapper.selectGcFkfpById(id);
    }

    /**
     * 查询发票项列表
     * 
     * @param gcFkfp 发票项
     * @return 发票项
     */
    @Override
    public List<GcFkfp> selectGcFkfpList(GcFkfp gcFkfp)
    {
        return gcFkfpMapper.selectGcFkfpList(gcFkfp);
    }

    /**
     * 新增发票项
     * 
     * @param gcFkfp 发票项
     * @return 结果
     */
    @Override
    public int insertGcFkfp(GcFkfp gcFkfp)
    {
        return gcFkfpMapper.insertGcFkfp(gcFkfp);
    }

    /**
     * 修改发票项
     * 
     * @param gcFkfp 发票项
     * @return 结果
     */
    @Override
    public int updateGcFkfp(GcFkfp gcFkfp)
    {
        return gcFkfpMapper.updateGcFkfp(gcFkfp);
    }

    /**
     * 批量删除发票项
     * 
     * @param ids 需要删除的发票项主键
     * @return 结果
     */
    @Override
    public int deleteGcFkfpByIds(String ids)
    {
        return gcFkfpMapper.deleteGcFkfpByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除发票项信息
     * 
     * @param id 发票项主键
     * @return 结果
     */
    @Override
    public int deleteGcFkfpById(Long id)
    {
        return gcFkfpMapper.deleteGcFkfpById(id);
    }

	@Override
	public List<GcFkfp> selectGcFkfpSupplylis(Long gcProjectid) {
		return gcFkfpMapper.selectGcFkfpSupplylis(gcProjectid);
	}
}